package com.yunhe.inspect.repository;
import com.yunhe.inspect.domain.DataInspectOrderItem;
import com.yunhe.inspect.model.InspectOrderItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * @description 巡检工单项目关联表
 * @author misty
 * @date 2021-11-10
 */
@Repository
public interface DataInspectOrderItemRepository {

    /**
     * 新增
     * @author misty
     * @date 2021/11/10
     **/
    int createDataInspectOrderItem(DataInspectOrderItem dataInspectOrderItem);

    /**
     * 新增
     * @author misty
     * @date 2021/11/10
     **/
    int createDataInspectOrderItemSelective(DataInspectOrderItem dataInspectOrderItem);

    /**
     * 刪除
     * @author misty
     * @date 2021/11/10
     **/
    int deleteDataInspectOrderItemByPrimaryKey(@Param("id") int id);

    /**
     * 更新
     * @author misty
     * @date 2021/11/10
     **/
    int updateDataInspectOrderItemByPrimaryKey(DataInspectOrderItem dataInspectOrderItem);

    /**
     * 更新
     * @author misty
     * @date 2021/11/10
     **/
    int updateDataInspectOrderItemByPrimaryKeySelective(DataInspectOrderItem dataInspectOrderItem);

    /**
     * 根据主键查询
     * @author misty
     * @date 2021/11/10
     **/
    DataInspectOrderItem searchDataInspectOrderItemByPrimaryKey(@Param("id") int id);


    void batchDataInspectOrderItem(@Param("dataInspectOrderItemList") List<DataInspectOrderItem> dataInspectOrderItemList);

    List<InspectOrderItem> searchDataInspectOrderItemByOrderId(@Param("inspectOrderId") int inspectOrderId);

    DataInspectOrderItem getByInspectOrderIdAndItemPlanId(@Param("inspectOrderId") int inspectOrderId, @Param("itemPlanId") int itemPlanId);
}